﻿@model ADShop.Models.PromotionsProduct

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

@*<fieldset>
    <legend>PromotionsProduct</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.IDPromotions)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IDPromotions)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.IDProduct)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IDProduct)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.FromDay)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FromDay)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ToDay)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ToDay)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Quantity)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Quantity)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Active)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Active)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new {  id = Model.IDProduct  }) |
    @Html.ActionLink("Back to List", "Index")
</p>*@

<div class="panel-body">
    <table class="table table-hover" id="sample-table-1">
        <thead>
            <tr>


                <th> @Html.DisplayNameFor(model => model.IDPromotions)</th>
                <th>Product</th>
                <th>@Html.DisplayNameFor(model => model.FromDay)</th>
                <th>@Html.DisplayNameFor(model => model.ToDay)</th>
                <th>@Html.DisplayNameFor(model => model.Quantity)</th>
                <th>@Html.DisplayNameFor(model => model.Active)</th>

            </tr>
        </thead>
        <tbody>
            <tr>


                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.IDPromotions)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                @Html.Action("GetImages",  new { id = Model.IDProduct })
                </div>
</td>
                
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.FromDay)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.ToDay)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Quantity)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Active)
                    </div>
                </td>

            </tr>

        </tbody>
    </table>
</div>

<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.IDPromotions}, new { @class = "label label-default" }) |
    @Html.ActionLink("Quay lại danh sách khách hàng", "Index", null, new { @class = "label label-default" })
</p>
